import request from '/@/utils/request';
import {versions} from './versions'

/**
 * 登录api接口集合
 * @method signIn 用户登录
 */
export function login(params: object) {
    return request({
        url: `${versions}/system/login`,
        method: 'post',
        data: params,
    });
}

/**
 * 获取验证码
 */
export function captcha() {
    return request({
        url: `${versions}/pub/captcha/get`,
        method: "get"
    })
}

/**
 * 退出登录
 */
export function logout() {
    return request({
        url: `${versions}/system/logout`,
        method: 'get',
    });
}
